<%@include file="/jsp/base/context.jsp"%>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Available Options</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/buttons.css" rel="stylesheet" type="text/css" />
</head>
<body >

<div class="content">
<div class="leftCol">
   <!-- filter section -->
   <form action="SearchResultsController">
   	   <input name="numCriteria" type="hidden" value="${fn:length(criterias)}" />
	   <c:forEach items="${criterias }" var="criteria"> 	
		   <table  border="0" cellspacing="0" cellpadding="0" class="searchRooms" width="100%">
		  	<tr>
		    	<td  class="resultSummaryCol2">
		    		${criteria.question } 
		    	</td>
		    </tr>
		    	<tr>
					<td  class="resultSummaryCol2">
						<input name="${criteria.code }" <c:if test="${selectedOption eq 'ALL' }">checked="checked"</c:if> value="ALL" type="radio" /> &nbsp; ALL    		
					</td>
				</tr>
		    	<c:forEach items="${criteria.options }" var="option">				    
				    <tr>
				    	<td  class="resultSummaryCol2">
				    		<input name="${criteria.code }" <c:if test="${selectedOption eq option.code }">checked="checked"</c:if> value="${option.code}" type="radio" /> &nbsp; ${option.value}    		
				    	</td>
				    </tr>
			    </c:forEach>
			    	    
			    <tr>
			    	<td  class="resultSummaryCol2">
			    		<input type="submit" value="Filter" />    		
			    	</td>
			    </tr>	    
			</table>		
		</c:forEach>
	</form>
	<!-- end filter section -->     
</div>
<div class="rightCol rightColFix ">
<div class="moldelContentxxx" style="min-height:500px;">
<div class="resultSummaryHotel">
  <h3>Hotel Results</h3> &nbsp; <a style="float: right; padding-right: 2px" href="SearchController" >Back to Search</a>  
<div class="singleResultHotel">
<c:forEach items="${results }" var="result">
	<div><table  border="0" cellspacing="0" cellpadding="0" class="searchRooms" width="100%">
	  <tr>
	    <td  class="resultSummaryCol2">
	    <h3>${result.name }</h3>
	    <p><strong>Address : xxx - ${result.cityName }</strong></p>
		<p class="hotelDes">This is a test hotel description...</p>
	    </td>
	    </tr>
	</table></div>
</c:forEach>

<div>
	<a href="SearchController">
		Back to Search
	</a>
</div>

</div>
</div>
</div>
<div class="leftCol2">
	
</div>        
</div>
</div>
</body>
</html>


